﻿using System;
using System.Collections.Generic;
using System.Linq;

using System.Web.Mvc;
using Prodma.DataAccess.Database;
using Prodma.DataAccess.Models;
using Prodma.DataAccess.Helper.Enumerators;

namespace Prodma.DataAccess.DataService.ListService
{
    public static class StyleList
    {
        public static SelectList GetList()
        {
            Dictionary<string, string> styleList = new Dictionary<string, string>();
            styleList.Add("box", "Kutu");
            styleList.Add("list", "Liste");

            SelectList selectList = new SelectList(styleList.ToDictionary(x => x.Key, z => z.Value), "Key", "Value");

            return selectList;
        }

        public static SelectList GetList(string style)
        {
            Dictionary<string, string> styleList = new Dictionary<string, string>();
            styleList.Add("box", "Kutu");
            styleList.Add("list", "Liste");

            SelectList selectList = new SelectList(styleList.ToDictionary(x => x.Key, z => z.Value), "Key", "Value", style);

            return selectList;
        }
    }
}
